package org.example.exception;

import lombok.Getter;
import lombok.Setter;
import org.example.Result.StatusCode;

/**
 *  自定义异常类
**/
@Setter
public class BusinessException extends RuntimeException {
    @Getter
    private StatusCode Status;

    private String message;

    public BusinessException(StatusCode Status, String message) {
        this.Status = Status;
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
